//获取聊天列表
function queryFriend(userId){
    fun_loading(!0)
    var urls = serverUrl+"friend/query/"+userId
    http.get(urls,function (err,result){
        if(result.code == 0){
            console.log(result.data)
            layer.msg("查询朋友列表");
        }else{
            layer.msg(result.msg);
            getimgcode();
        }
        fun_loading(!1)
    });
}